#!/bin/bash
. appenv
. classpath
cd $SERVER/script


    rm -rf nohup.out
    touch nohup.out
    nohup /usr/java/jdk1.8.0_73/bin/java -Xms128m -Xmx256m -cp ${APPCLASSPATH} -Dflag=${SERVERNAME}  ${MainClass} >nohup.out 2>&1 &
    echo $! > server.pid 
    echo "SERVER --------> [${SERVERNAME}] ALREADY START"
    tail -f nohup.out

exit 1
